package com.aspose.cells;

class zamv extends zbz {
   private zast a;

   zamv(int var1, zast var2) {
      this.c(4105);
      this.b = var1;
      this.a = var2;
      this.b(20);
      this.c = new byte[20];
      this.c[10] = 1;
      this.c[12] = 77;
      this.c[14] = 77;
      this.c[16] = 60;
   }

   void a(Marker var1, int var2) {
      if (var1.getMarkerStyle() != 0) {
         this.c[10] = (byte)(this.c[10] & 254);
         int var3;
         switch(var1.e()) {
         case 0:
            this.c[12] = (byte)((32 + var2) % 56);
            break;
         case 1:
            this.c[10] = (byte)(this.c[10] | 32);
            break;
         case 2:
            if (!com.aspose.cells.a.c.zh.a(var1.d())) {
               var3 = this.a.a(var1.d());
               this.a(var1.d(), var3);
            }
         }

         switch(var1.g()) {
         case 0:
            this.c[14] = (byte)((32 + var2) % 56);
            break;
         case 1:
            this.c[10] = (byte)(this.c[10] | 16);
            break;
         case 2:
            if (!com.aspose.cells.a.c.zh.a(var1.f())) {
               var3 = this.a.a(var1.f());
               this.b(var1.f(), var3);
            }
         }

         this.d(var1.getMarkerStyle());
         this.a(var1.getMarkerSize());
      }
   }

   private void a(Color var1, int var2) {
      if (var2 == -1) {
         var2 = this.a.a(com.aspose.cells.a.c.zh.b(var1) & 255, com.aspose.cells.a.c.zh.c(var1) & 255, com.aspose.cells.a.c.zh.d(var1) & 255);
      }

      this.c[0] = com.aspose.cells.a.c.zh.b(var1);
      this.c[1] = com.aspose.cells.a.c.zh.c(var1);
      this.c[2] = com.aspose.cells.a.c.zh.d(var1);
      this.c[12] = (byte)var2;
   }

   private void b(Color var1, int var2) {
      if (var2 == -1) {
         var2 = this.a.a(com.aspose.cells.a.c.zh.b(var1) & 255, com.aspose.cells.a.c.zh.c(var1) & 255, com.aspose.cells.a.c.zh.d(var1) & 255);
      }

      this.c[4] = com.aspose.cells.a.c.zh.b(var1);
      this.c[5] = com.aspose.cells.a.c.zh.c(var1);
      this.c[6] = com.aspose.cells.a.c.zh.d(var1);
      this.c[14] = (byte)var2;
   }

   private void a(int var1) {
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1 * 20), 0, this.c, 16, 2);
   }

   private void d(int var1) {
      switch(var1) {
      case 0:
      case 3:
         this.c[8] = 2;
         break;
      case 1:
         this.c[8] = 8;
         break;
      case 2:
         this.c[8] = 7;
         break;
      case 4:
         this.c[8] = 6;
         break;
      case 5:
         this.c[8] = 0;
         break;
      case 6:
         this.c[8] = 9;
         break;
      case 7:
         this.c[8] = 1;
         break;
      case 8:
         this.c[8] = 5;
         break;
      case 9:
         this.c[8] = 3;
         break;
      case 10:
         this.c[8] = 4;
         break;
      default:
         return;
      }

   }
}
